home *** CD-ROM | disk | FTP | other *** search
/ .net 2002 March / DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin / pc / PC Software / free_browsing / DavesQckSearchDbar3-14 / dqsd.exe / searches / cpan.xml < prev    next >
Text File  |  2002-09-10  |  2KB  |  63 lines

  1. <search function="cpan">
  2.   <name>Comprehensive Perl Archive Network</name>
  3.   <description>
  4.     Search CPAN for Perl software. Searches for modules by default.<br/>
  5.     <div class="helpboxDescLabels">Switches:</div>
  6.       <table class="helpboxDescTable">
  7.           <tr><td>/author</td><td> - </td><td>Search for authors.</td></tr>
  8.           <tr><td>/distribution</td><td> - </td><td>Search for distributions.</td></tr>
  9.       <tr><td>/documentation</td><td> - </td><td>Search for distribution documentation.</td></tr>
  10.        </table>
  11.     <div class="helpboxDescLabels">Example:</div>
  12.     <table class="helpboxDescTable">
  13.           <tr><td>cpan wrap</td></tr>
  14.           <tr><td>cpan wall /author</td></tr>
  15.       </table>
  16.   </description>
  17.   <category>Computers</category>
  18.   <link>http://search.cpan.org/</link>
  19.   <contributor>Monty Scroggins, Ryan Edwards</contributor>
  20.   
  21.   <form name="cpanf"
  22.         action="http://search.cpan.org/search"
  23.         method="get">
  24.     <input type="hidden" name="query"/>
  25.     <input type="hidden" name="mode" value="module"/>
  26.   </form>
  27.   
  28.   <script><![CDATA[
  29.     function cpan(q)
  30.     {
  31.       var args = parseArgs(q, "author, distribution, documentation");
  32.       
  33.       if( nullArgs("cpan", q) )
  34.         return false;
  35.       else if( args.switches.length == 1 )
  36.       {
  37.         switch( args.switches[0].name )
  38.         {
  39.           case "author": document.cpanf.mode.value = "author"; break;
  40.           case "distribution": document.cpanf.mode.value = "dist"; break;
  41.           case "documentation": document.cpanf.mode.value = "doc"; break;
  42.         }
  43.         document.cpanf.query.value = args.q;
  44.         submitForm(cpanf);
  45.       }
  46.       else if( args.switches.length > 1 )
  47.         nullArgs("cpan","?");
  48.       else
  49.       {
  50.         document.cpanf.mode.value = "module"
  51.         document.cpanf.query.value = args.q;
  52.         submitForm(cpanf);
  53.       }
  54.     }
  55.   ]]></script>
  56.  
  57.   <copyright>
  58.     Copyright (c) 2002 David Bau
  59.     Distributed under the terms of the
  60.     GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  61.   </copyright>
  62. </search>
  63.